<?php
class EvaluateModel extends BaseModel
{
	var $table  = 'evaluate';
	var $prikey = 'eval_id';
	var $_name  = 'et';
	var $alias  = 'et';
	var $_relation = array(
		'has_member' => array(
			'model' => 'member',
			'type' => HAS_ONE,
			'foreign_key'   => 'eval_user_id',
		),
		'belongs_to_sample' => array(
			'model' => 'sample',
			'type' => BELONGS_TO,
			'foreign_key'   => 'sample_id',
			'reverse'       => 'has_evaluate',
		),
	);
}